home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 2.iso / dist / fw_libxml.idb / usr / freeware / include / gnome-xml / xml-error.h.z / xml-error.h
C/C++ Source or Header  |  2001-04-12  |  3KB  |  141 lines

  1. #ifndef __XML_ERROR_H__
  2. #define __XML_ERROR_H__
  3.  
  4. #include "parser.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. typedef enum {
  10.     XML_ERR_OK = 0,
  11.     XML_ERR_INTERNAL_ERROR,
  12.     XML_ERR_NO_MEMORY,
  13.     
  14.     XML_ERR_DOCUMENT_START, /* 3 */
  15.     XML_ERR_DOCUMENT_EMPTY,
  16.     XML_ERR_DOCUMENT_END,
  17.  
  18.     XML_ERR_INVALID_HEX_CHARREF, /* 6 */
  19.     XML_ERR_INVALID_DEC_CHARREF,
  20.     XML_ERR_INVALID_CHARREF,
  21.     XML_ERR_INVALID_CHAR,
  22.  
  23.     XML_ERR_CHARREF_AT_EOF, /* 10 */
  24.     XML_ERR_CHARREF_IN_PROLOG,
  25.     XML_ERR_CHARREF_IN_EPILOG,
  26.     XML_ERR_CHARREF_IN_DTD,
  27.     XML_ERR_ENTITYREF_AT_EOF,
  28.     XML_ERR_ENTITYREF_IN_PROLOG,
  29.     XML_ERR_ENTITYREF_IN_EPILOG,
  30.     XML_ERR_ENTITYREF_IN_DTD,
  31.     XML_ERR_PEREF_AT_EOF,
  32.     XML_ERR_PEREF_IN_PROLOG,
  33.     XML_ERR_PEREF_IN_EPILOG,
  34.     XML_ERR_PEREF_IN_INT_SUBSET,
  35.  
  36.     XML_ERR_ENTITYREF_NO_NAME, /* 22 */
  37.     XML_ERR_ENTITYREF_SEMICOL_MISSING,
  38.  
  39.     XML_ERR_PEREF_NO_NAME, /* 24 */
  40.     XML_ERR_PEREF_SEMICOL_MISSING,
  41.  
  42.     XML_ERR_UNDECLARED_ENTITY, /* 26 */
  43.     XML_WAR_UNDECLARED_ENTITY,
  44.     XML_ERR_UNPARSED_ENTITY,
  45.     XML_ERR_ENTITY_IS_EXTERNAL,
  46.     XML_ERR_ENTITY_IS_PARAMETER,
  47.  
  48.     XML_ERR_UNKNOWN_ENCODING, /* 31 */
  49.     XML_ERR_UNSUPPORTED_ENCODING,
  50.  
  51.     XML_ERR_STRING_NOT_STARTED, /* 33 */
  52.     XML_ERR_STRING_NOT_CLOSED,
  53.     XML_ERR_NS_DECL_ERROR,
  54.  
  55.     XML_ERR_ENTITY_NOT_STARTED, /* 36 */
  56.     XML_ERR_ENTITY_NOT_FINISHED,
  57.     
  58.     XML_ERR_LT_IN_ATTRIBUTE, /* 38 */
  59.     XML_ERR_ATTRIBUTE_NOT_STARTED,
  60.     XML_ERR_ATTRIBUTE_NOT_FINISHED,
  61.     XML_ERR_ATTRIBUTE_WITHOUT_VALUE,
  62.     XML_ERR_ATTRIBUTE_REDEFINED,
  63.  
  64.     XML_ERR_LITERAL_NOT_STARTED, /* 43 */
  65.     XML_ERR_LITERAL_NOT_FINISHED,
  66.     
  67.     XML_ERR_COMMENT_NOT_FINISHED, /* 45 */
  68.  
  69.     XML_ERR_PI_NOT_STARTED, /* 47 */
  70.     XML_ERR_PI_NOT_FINISHED,
  71.  
  72.     XML_ERR_NOTATION_NOT_STARTED, /* 49 */
  73.     XML_ERR_NOTATION_NOT_FINISHED,
  74.  
  75.     XML_ERR_ATTLIST_NOT_STARTED, /* 51 */
  76.     XML_ERR_ATTLIST_NOT_FINISHED,
  77.  
  78.     XML_ERR_MIXED_NOT_STARTED, /* 53 */
  79.     XML_ERR_MIXED_NOT_FINISHED,
  80.  
  81.     XML_ERR_ELEMCONTENT_NOT_STARTED, /* 55 */
  82.     XML_ERR_ELEMCONTENT_NOT_FINISHED,
  83.  
  84.     XML_ERR_XMLDECL_NOT_STARTED, /* 57 */
  85.     XML_ERR_XMLDECL_NOT_FINISHED,
  86.  
  87.     XML_ERR_CONDSEC_NOT_STARTED, /* 59 */
  88.     XML_ERR_CONDSEC_NOT_FINISHED,
  89.  
  90.     XML_ERR_EXT_SUBSET_NOT_FINISHED, /* 61 */
  91.  
  92.     XML_ERR_DOCTYPE_NOT_FINISHED, /* 62 */
  93.  
  94.     XML_ERR_MISPLACED_CDATA_END, /* 63 */
  95.     XML_ERR_CDATA_NOT_FINISHED,
  96.  
  97.     XML_ERR_RESERVED_XML_NAME, /* 65 */
  98.  
  99.     XML_ERR_SPACE_REQUIRED, /* 66 */
  100.     XML_ERR_SEPARATOR_REQUIRED,
  101.     XML_ERR_NMTOKEN_REQUIRED,
  102.     XML_ERR_NAME_REQUIRED,
  103.     XML_ERR_PCDATA_REQUIRED,
  104.     XML_ERR_URI_REQUIRED,
  105.     XML_ERR_PUBID_REQUIRED,
  106.     XML_ERR_LT_REQUIRED,
  107.     XML_ERR_GT_REQUIRED,
  108.     XML_ERR_LTSLASH_REQUIRED,
  109.     XML_ERR_EQUAL_REQUIRED,
  110.  
  111.     XML_ERR_TAG_NAME_MISMATCH, /* 77 */
  112.     XML_ERR_TAG_NOT_FINISED,
  113.  
  114.     XML_ERR_STANDALONE_VALUE, /* 79 */
  115.  
  116.     XML_ERR_ENCODING_NAME, /* 80 */
  117.  
  118.     XML_ERR_HYPHEN_IN_COMMENT /* 81 */
  119.  
  120. }xmlParserErrors;
  121.  
  122. void    xmlParserError        (void *ctx,
  123.                  const char *msg,
  124.                  ...);
  125. void    xmlParserWarning    (void *ctx,
  126.                  const char *msg,
  127.                  ...);
  128. void    xmlParserValidityError    (void *ctx,
  129.                  const char *msg,
  130.                  ...);
  131. void    xmlParserValidityWarning(void *ctx,
  132.                  const char *msg,
  133.                  ...);
  134. void    xmlParserPrintFileInfo    (xmlParserInputPtr input);
  135. void    xmlParserPrintFileContext(xmlParserInputPtr input);
  136.  
  137. #ifdef __cplusplus
  138. }
  139. #endif
  140. #endif /* __XML_ERROR_H__ */
  141.